import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
  // 二级路由path通常情况下来讲是需要添加斜杠
  // 如果子路由的路径为空字符串，当前路由默认匹配
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }

    },
    {
      path: 'detail/:userId',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true
    },
    {
      path: 'print/:id', // 二级默认路由
      component: () => import('@/views/employees/components/print.vue'), // 按需加载
      hidden: true

    }
  ]
}
